/**
 * 
 */
package unifor.filetransfer.comandos;

import javax.swing.JProgressBar;
import javax.swing.JTextArea;

import org.swixat.model.GenericContext;

import unifor.filetransfer.Principal;

/**
 * @author Landim - Arthur Landim
 *
 */
public class AbrirJanelaAction extends GenericAction {

    /* (non-Javadoc)
     * @see unifor.filetransfer.comandos.GenericAction#action(org.swixat.model.GenericContext)
     */
    @Override
    public void action(GenericContext context) throws Exception {

        Principal.setLog((JTextArea) getMapParams(context).get("logRecepcao"));
        Principal.setLogTrans((JTextArea) getMapParams(context).get("logTransmissao"));
        Principal.setBarra((JProgressBar) getMapParams(context).get("progress"));
        
    }

}
